//Created by  for Jaws.Core.Web
//Original work Copyright(C) 2008.  All Rights Reserved.

namespace Jaws.Core.Web.Entities.Validation.CustomAttributes
{
    public class IsRequiredAttribute : ValidationAttribute
    {
        public IsRequiredAttribute()
        {
            Message = ValidationMessages.IsRequired;
        }

        #region Overrides of ValidationAttribute

        public override bool IsValid(object item)
        {
            return (item == null)? false : true;
        }

        #endregion
    }
}